@extends('layouts.app')

@section('body')
    @component('components.alert')@endcomponent
    <form action="{{route('admin.login')}}" method="post">
        {{csrf_field()}}
        账号:<input name="login" value="{{old('login')}}" placeholder="用户名/手机号/邮箱">
        @if($errors->has('login'))
            {{$errors->first('login')}}
        @endif
        <br/>
        密码:<input type="password" name="password" value="" placeholder="请输入密码">
        @if($errors->has('password'))
            {{$errors->first('password')}}
        @endif
        <br/>
        <input type="checkbox" name="remember" checked> 记住登录
        <br/>
        <button type="submit">登录</button>
        <small><a href="{{route('admin.login.sms')}}">短信登录</a></small>
    </form>


@endsection
